import request from '@/utils/request'

// 查询字段显示列表
export function listFieldshow(query) {
  return request({
    url: '/business/fieldshow/list',
    method: 'get',
    params: query
  })
}

// 查询字段显示详细
export function getFieldshow(id) {
  return request({
    url: '/business/fieldshow/' + id,
    method: 'get'
  })
}

// 新增字段显示
export function addFieldshow(data) {
  return request({
    url: '/business/fieldshow',
    method: 'post',
    data: data
  })
}

// 修改字段显示
export function updateFieldshow(data) {
  return request({
    url: '/business/fieldshow',
    method: 'put',
    data: data
  })
}

// 删除字段显示
export function delFieldshow(id) {
  return request({
    url: '/business/fieldshow/' + id,
    method: 'delete'
  })
}
